package com.marveal.rabbit.producer.entity;

import com.marveal.rabbit.api.Message;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

@Setter
@Getter
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class BrokerMessage implements Serializable {

    private static final long serialVersionUID = 1018604831620631945L;

    private String messageId;

    private Message message;

    private Integer tryCount = 0;

    private int status;

    private Date nextRetry;

    private Date createTime;

    private Date updateTime;
}
